<?php
/**
 * Created by PhpStorm.
 * User: alice
 * Date: 2015/12/28
 * Time: 14:46
 */

class Involved_InvoiceModel extends BaseModel
{
    protected $table = 'invoice';

    /**
     * 列表
     * @return info
     */
    public function GetInvoiceList()
    {
        return  DB::table($this->table)
                ->select('invoice.invoice_id', 'invoice.title','invoice.order_id','invoice.addressee','invoice.address','invoice.phone','invoice.invoice_type','order.order_sn')
                ->leftjoin('order','invoice.order_id','=','order.order_id')
                ->where('is_default',0)
                ->get();
    }


}